export const tranDeviceToDescriptions = (device) => {
    const temp = [];
    for (const key in device) {
        const i = device[key];
        if (i && i.label) {
            const children = i.prefix ? i.prefix + i.value : i.value;
            temp.push({ ...i, key, children })
        }
    }
    return temp;
}